package com.baidu.sms.controller;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Topic;

@Configuration
public class TopicConfig {
    @Bean
    Topic topic (){
        ActiveMQTopic activeMQTopic = new ActiveMQTopic("springboot_topic");
        return activeMQTopic;
    }
}
